package cn.zhentao.service;

import cn.zhentao.pojo.DeliveryTasks;
import cn.zhentao.pojo.VTaskPackageOrders;
import cn.zhentao.vo.QueryPage;
import cn.zhentao.vo.TaskDetailsVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 配送任务表 服务类
 * </p>
 *
 * @author mp
 * @since 2025-06-16
 */
public interface IDeliveryTasksService extends IService<DeliveryTasks> {

    List<cn.zhentao.vo.TaskDetailsVo> findAllTask(QueryPage queryPage);

    List<TaskDetailsVo> findAllTaskGroup(QueryPage queryPage);
    boolean acceptTask(String packageId, String deliverymanId);
    public boolean cancelTaskPackage(String packageId);
    public boolean collectPackageAndOrders(String packageId);
    public List<VTaskPackageOrders> getUncollectedPackagesByDeliveryman(Integer deliverymanId);


}
